﻿@using System.Linq;

@{
    Style.Include("chapters.css");
    IEnumerable<Contrib.Chapters.Models.ChapterPart> chapters = Model.Sections;
}
@if(chapters.Any()) {
<ul class="chapters-sections">
@foreach(var chapter in chapters) {
    <li>@Html.ItemDisplayLink((string)chapter.Title, chapter.ContentItem)</li> 
}
</ul>
}